package com.yuan.admin.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author SiYuan
 * @Description :
 * @Date 2018/11/30 14:22
 */
@Controller

public class indexController {
    /***
     * 定义一个基本的控制器
     * 返回的数据为 Json
     * @return
     */
    @GetMapping(value = {"/index","/"})
    public  String index(){

        return "index";
    }

    /***
     * 返回一个页面视图
     * @return
     */
    @GetMapping("/test1")
    public String  getHtml(){
        return "test1";
    }


}

